From a05204154c2f603f4a8a056466bd267274c96ba9 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Tue, 16 Sep 2008 04:44:12 +0000 Subject: [PATCH] Fix a C99ism svn path=/trunk/; revision=21398 --- ChangeLog | 8 ++++++++ gtk/gtkimcontextsimple.c | 3 ++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index fd82a4f3f8..e64c1ffb00 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2008-09-16 Matthias Clasen + + Bug 552001 – gtkimcontextsimple.c: variable is declared at middle of + block + + * gtk/gtkimcontextsimple.c: Fix a C99ism, pointed out by Kazuki + Iwamoto. + 2008-09-13 Tor Lillqvist * gtk/gtkmain.c: Don't use the deprectated diff --git a/gtk/gtkimcontextsimple.c b/gtk/gtkimcontextsimple.c index bb49d21db7..459bdd7ea7 100644 --- a/gtk/gtkimcontextsimple.c +++ b/gtk/gtkimcontextsimple.c @@ -485,10 +485,11 @@ check_algorithmically (GtkIMContextSimple *context_simple, */ if (check_normalize_nfc (combination_buffer, n_compose)) { + gunichar value; combination_utf8 = g_ucs4_to_utf8 (combination_buffer, -1, NULL, NULL, NULL); nfc = g_utf8_normalize (combination_utf8, -1, G_NORMALIZE_NFC); - gunichar value = g_utf8_get_char (nfc); + value = g_utf8_get_char (nfc); gtk_im_context_simple_commit_char (GTK_IM_CONTEXT (context_simple), value); context_simple->compose_buffer[0] = 0; -- 2.30.2